package com.example.httpdemo.retrofit.service

import com.example.httpdemo.entity.*
import com.example.httpdemo.front.GetCourseInfo
import com.example.httpdemo.front.GetGradeInfo
import com.example.httpdemo.front.GetHaveStudiedInfo
import com.example.httpdemo.front.GetStuInfo
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface StudentService {
    @POST("getstudentinfo")
    fun getStudentInfo(@Body getStuInfo: GetStuInfo) : Call<ResponseData<StudentInfo>>

    @POST("getstugrade")
    fun getStudentGrade(@Body getGradeInfo: GetGradeInfo) : Call<ResponseGradeData>

    @POST("getstucourse")
    fun getStudentCourse(@Body getCourseInfo: GetCourseInfo) : Call<ResponseData<Course>>

    @POST("getstuhavestudied")
    fun getStudentHaveStudied(@Body getHaveStudiedInfo: GetHaveStudiedInfo) : Call<ResponseData<HaveStudied>>

    @GET("getstuquadeve/{studentId}")
    fun getStuQuaDeve(@Path("studentId") studentId: String) :  Call<ResponseData<QuaDeveInfo>>
}